package com.example.foo.ftt.model;

import java.math.BigDecimal;

import com.example.foo.ftt.FttLevel;

/**
 * 网体分账
 */
@com.baomidou.mybatisplus.annotation.TableName("fttprofit")
public class FttProfit extends com.example.core.model.BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 状态
	 */
	public enum State {
		pending("等待"),
		success("成功"),
		failure("失败")
		;
		public final String text;
		State(String text) {
			this.text = text;
		}
	}

	private FttLevel fttLevel;

	private BigDecimal totalMoney;

	private Integer periodDay;

	private FttProfit.State state;

	private Integer userCount;

	private BigDecimal perUserMoney;

	public FttProfit() {
	}

	/**
	 * @return 网体级别
	 */
	public FttLevel getFttLevel() {
		return fttLevel;
	}

	/**
	 * @param fttLevel 网体级别
	 */
	public void setFttLevel(FttLevel fttLevel) {
		this.fttLevel = fttLevel;
	}

	/**
	 * @return 总金额
	 */
	public BigDecimal getTotalMoney() {
		return totalMoney;
	}

	/**
	 * @param totalMoney 总金额
	 */
	public void setTotalMoney(BigDecimal totalMoney) {
		this.totalMoney = totalMoney;
	}

	/**
	 * @return 账期日期
	 */
	public Integer getPeriodDay() {
		return periodDay;
	}

	/**
	 * @param periodDay 账期日期
	 */
	public void setPeriodDay(Integer periodDay) {
		this.periodDay = periodDay;
	}

	/**
	 * @return 状态
	 */
	public FttProfit.State getState() {
		return state;
	}

	/**
	 * @param state 状态
	 */
	public void setState(FttProfit.State state) {
		this.state = state;
	}

	/**
	 * @return 用户数
	 */
	public Integer getUserCount() {
		return userCount;
	}

	/**
	 * @param userCount 用户数
	 */
	public void setUserCount(Integer userCount) {
		this.userCount = userCount;
	}

	/**
	 * @return 每用户分账金额
	 */
	public BigDecimal getPerUserMoney() {
		return perUserMoney;
	}

	/**
	 * @param perUserMoney 每用户分账金额
	 */
	public void setPerUserMoney(BigDecimal perUserMoney) {
		this.perUserMoney = perUserMoney;
	}

}
